
            <div class="content container">

                <!-- container -->
                <!--  -->
                <section class="mark">
                    <h2><a class="btn btn-primary pull-right">其他学生</a>名目</h2>
                    <p>专业：{$zyname.title}　　学生：{$student.realname}</p>
                </section>
                <!-- End -->

                <section class="exam-list"> 

                        <div class="pull-right">
                            <a id="dianzanla" <if condition="$dianzan eq '1' ">  class=" btn-zan pull-left active "<else />class=" btn-zan pull-left " </if> ></a>
                            &nbsp;<span id="numzan" class="pull-left">{$info.laud}</span>
                        </div> 

                    <a class="pull-right" href="{$info.zg_uploads}" style="color:#2aabed;border-bottom:1px solid #2aabed;">查看主观题附件</a> 
                   <h2>主观题得分：{$info.zg_score}</h2>
                    <volist name='list' id='vo' key='k'>
                    <!-- 题目列表 -->
                    <div class="exam-list-li">
                        <!-- 考试-头部 -->
                        <!-- <div class="exam-list-li-head">
                            <div class="pull-right">得分：10</div>
                            <a class="btn-zan pull-right"></a>
                            <a class="text-primary pull-right">下载附件</a>
                            <span>2：</span>
                        </div>
                        <!-- 考试-头部 End -->
                        <!-- 考试-题目 -->
                        <div class="exam-list-li-text">
                            {$vo.content}
                        </div>
                        <div class="exam-list-li-text">
                            <h3>考试答案</h3>
                            {$vo['daan']}
                        </div>
                        <!-- 考试-题目 End -->
                        <!-- 考试-答案 -->
                        <div class="exam-list-li-text">
                            <h3>老师评语</h3>
                            <p>{$info.exam_note}</p>
                            <h3>企业评语</h3>
                            <volist name="vo['pinglun']" id="voo" key="k">
                            <div>
                                <p>{$voo.realname}：</p>
                                <p>{$voo.comment}</p>
                            </div>
                            </volist>

                        </div>
                        <!-- 考试-答案 End -->
                        <!-- 考试-评语 -->
                        <div class="exam-list-li-answer">
                                评语：
                                <textarea id="comment_{$info['id']}_{$vo.id}_{$student['id']}" class="form-control" rows="3" placeholder="可以输入多行文本"></textarea>
                            </div>
                            <!-- 考试-评语 End -->
                    </div>
                    <!-- 题目列表 End -->

                    <!-- 提交按钮 -->
                    <div class="exam-submit">
                        <button class="btn btn-primary"  data-answerid="{$info['id']}" data-questionid="{$vo.id}" data-studentid="{$student['id']}">点评</button>
                    </div>
                    </volist>
                </section>

                <!-- container End -->


            </div>

    <i class="goTop"></i>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/zui/1.8.0/js/zui.min.js"></script>
    <!--<script src="dist/js/exam.js"></script>-->
    <script>
        $(function(){
            $(".mark > a").on("click",function(){
                var myModal = new $.zui.ModalTrigger({
                    className: "modal-exam",
                    title: "查看题目",
                    type: "ajax",
                    url: "ti-Ajax-Exam.html",
                    size: "lg",
                });
                myModal.show();
            })
            $(".mark h2 a").on("click",function(){
                
                var myModal = new $.zui.ModalTrigger({
                    className: "modal-exam",
                    title: "其他学生",
                    type: "ajax",
                    url: "index.php?g=User&m=Writing&a=other&zyid={$zyname.id}&studentid={$student.id}&id={$id}",
                    size: "sm",
                });
                myModal.show();
            })
            
            $(".exam-submit .btn").on("click",function(){
         var answerid = $(this).data('answerid') ;
         var questionid = $(this).data('questionid') ;
         var studentid =  $(this).data('studentid') ;
         var comment = $("#comment_"+answerid+"_"+questionid+"_"+studentid).val();
           $.ajax({
           type: "POST",
           url: "index.php?g=User&m=Writing&a=comment",
           data: "answerid="+answerid+"&questionid="+questionid+"&studentid="+studentid+"&comment="+comment,
           dataType: "json",
           success: function(resp)
           {
               if(resp.code=='0000'){
                   alert('添加成功') ;
                   window.location.reload() ;
               }else{
                   alert('添加失败') ;
               }
            }        
        });
         })
         
        $(".btn-zan").on("click",function(){
           $.ajax({
           type: "POST",
           url: "{:U('User/Student/laud')}&id={$info.id}",
           dataType: "json",
           success: function(resp)
           {
             if($("#dianzanla").hasClass("active")){
                 $("#dianzanla").removeClass("active");
             }else{
                  $("#dianzanla").addClass("active");
             }
             $("#numzan").html(resp);
            }        
        });
         })
         
        })
    </script>

